package com.atmilan.quartz.service.impl;

import com.atmilan.quartz.mapper.DelloglioProductSkuMapper;
import com.atmilan.quartz.model.entity.delloglio.DelloglioProductSku;
import com.atmilan.quartz.service.IDelloglioProductSkuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * Delloglio商品数据源sku 服务实现类
 * </p>
 *
 * @author wuzp
 * @since 2021-10-14
 */
@Service
public class DelloglioProductSkuServiceImpl extends ServiceImpl<DelloglioProductSkuMapper, DelloglioProductSku> implements IDelloglioProductSkuService {

    @Autowired
    DelloglioProductSkuMapper delloglioProductSkuMapper;

    @Override
    public void deleteAll() {
        delloglioProductSkuMapper.deleteAll();
    }

    @Override
    public void copyAll() {
        delloglioProductSkuMapper.deleteProductSkuBack();
        delloglioProductSkuMapper.copyProductSkuBack();
    }

}
